package com.stone.im.service.impl;

import com.stone.im.common.utils.PageUtils;
import com.stone.im.common.utils.Query;
import com.stone.im.dao.MessageReceiveDao;
import com.stone.im.entity.MessageReceiveEntity;
import com.stone.im.service.MessageReceiveService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.stone.common.utils.PageUtils;
//import com.stone.common.utils.Query;



@Service("messageReceiveService")
public class MessageReceiveServiceImpl extends ServiceImpl<MessageReceiveDao, MessageReceiveEntity> implements MessageReceiveService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MessageReceiveEntity> page = this.page(
                new Query<MessageReceiveEntity>().getPage(params),
                new QueryWrapper<MessageReceiveEntity>()
        );

        return new PageUtils(page);
    }

}